<p-dialog header="{{title}}" [(visible)]="display" modal="modal" [responsive]="true" [width]="400" [minWidth]="200" (onHide)="closeOrgEditMask(false)">
  <!--<p-panel header="{{title}}">-->
    <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
      <form [formGroup]="org">
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-3">
            <label for="" >父类型:</label>
          </div>
          <div class="ui-grid-col-9" id="">
            <input class="cursor_not_allowed" type="text" formControlName="fatherName" pInputText [(ngModel)]="currentOrg.name" *ngIf="state ==='add'" readonly/>
            <input class="cursor_not_allowed" type="text" formControlName="fatherName" pInputText [(ngModel)]="currentOrg.name" *ngIf="state ==='update'" readonly/>
          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-3">
            <label for="" >类型名:</label>
            <label ngClass="start_red">*</label>
          </div>
          <div class="ui-grid-col-9" id="">
            <input  class="cursor_not_allowed" formControlName="name" type="text" pInputText [(ngModel)]="submitAddOrg.name" *ngIf="state ==='add'"/>
            <input  class="cursor_not_allowed" formControlName="name" type="text" pInputText [(ngModel)]="currentOrg.typeName" *ngIf="state ==='update'"/>
          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-6"></div>
          <div class="ui-grid-col-3 padding-tblr">
            <button pButton type="submit" label="确认" (click)="formSubmit(false)" [disabled]="!org.valid"></button>
          </div>
          <div class="ui-grid-col-3 padding-tblr">
            <button pButton type="button" label="取消" (click)="closeOrgEditMask(false)"></button>
          </div>
        </div>
      </form>
    </div>
  <!--</p-panel>-->
</p-dialog>
